﻿
/**
 * @author 廖俊涵
*/

#pragma once

#include <iostream>
#include <opencv2/core/core.hpp>
#include "fastdeploy/vision.h"      
/*
1、记得配置fastdeploy库
2、并且将所有所需dll文件移至与生成的exe文件同目录
3、记得修改生成平台为release x64

*/

cv::Mat GpuInfer(const std::string& model_dir, const cv::Mat& image,
    const std::string& background_file = "");

cv::Mat CpuInfer(const std::string& model_dir, const cv::Mat& image,
    const std::string& background_file = "");

int infer_by_camera(const std::string& device, const std::string& model_dir,
    const std::string& window_name = "video", const std::string& background_file = "");